#include "InputServiceEngineHandler.h"

InputServiceEngineHandler::InputServiceEngineHandler( QObject *parent) : QObject(parent)
{
}

InputServiceEngineHandler::~InputServiceEngineHandler()
{
}


QStringMap InputServiceEngineHandler::AcquireInformation(const QString &uid, const QStringList &keys)
{
    QStringMap smap;
    smap.insert("type", "width");
    return smap;
}

QStringList InputServiceEngineHandler::AcquireResult(const QString &uid, QStringList &pinyins, QString &composition, QString &commit, QString &hint, int &status)
{
    QStringList out0;
    out0 << "res1" << "res2";
    pinyins << "py1" << "py2";
    composition = "compstr";
    commit = "commitstr";
    hint = "null";
    status = -1;
    return out0;
}

int InputServiceEngineHandler::Clear(const QString &uid)
{
}

int InputServiceEngineHandler::Destroy(const QString &uid)
{
}

int InputServiceEngineHandler::PageDown(const QString &uid)
{
}

int InputServiceEngineHandler::PageUp(const QString &uid)
{
}

QIntList InputServiceEngineHandler::PushChars(const QString &uid, const QIntList &chars)
{
    QIntList il;
    il.append(10);
    return il;
}

QIntList InputServiceEngineHandler::PushCoordinates(const QString &uid, const QInt2List &coordinates)
{
    QIntList il;
    il.append(6);
    il.append(8);
    il.append(9);
    return il;
}

int InputServiceEngineHandler::PushVoiceData(const QString &uid, const QByteArray &data, uint size, bool last)
{
}

int InputServiceEngineHandler::SelectCandidate(const QString &uid, int type, int index)
{
}

int InputServiceEngineHandler::SetMode(const QString &uid, const QString &mode, const QString &language)
{
}

QIntList InputServiceEngineHandler::SetValues(const QString &uid, const QStringMap &kvs)
{
}

